﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CollegeWebsite.Models.Student>" %>
<div class="art-block">
    <div class="art-block-tl"></div>
    <div class="art-block-tr"></div>
    <div class="art-block-bl"></div>
    <div class="art-block-br"></div>
    <div class="art-block-tc"></div>
    <div class="art-block-bc"></div>
    <div class="art-block-cl"></div>
    <div class="art-block-cr"></div>
    <div class="art-block-cc"></div>
    <div class="art-block-body">

<div class="art-blockheader">
    <div class="l"></div>
    <div class="r"></div>
    <h3 class="t">Enter your infomation</h3>
</div>
<div class="art-blockcontent">
    <div class="art-blockcontent-body">




    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.StudentID) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.StudentID) %>
                <%= Html.ValidationMessageFor(model => model.StudentID) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.StudentName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.StudentName) %>
                <%= Html.ValidationMessageFor(model => model.StudentName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.FatherName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FatherName) %>
                <%= Html.ValidationMessageFor(model => model.FatherName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.MotherName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.MotherName) %>
                <%= Html.ValidationMessageFor(model => model.MotherName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.DateOfBirth) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.DateOfBirth) %>
                <%= Html.ValidationMessageFor(model => model.DateOfBirth) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Gender) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Gender) %>
                <%= Html.ValidationMessageFor(model => model.Gender) %>
            </div>
            
            <div class="editor-label">
               Course:
            </div>
             <div class="editor-field" style="font-weight: bold">
            <%--  <%= Html.DisplayTextFor(model => model.Admission.Course.CourseName)%>  of <%= Html.DisplayTextFor(model => model.Admission.Course.Faculty.FacultyName)%>--%>
             </div>
               <div class="editor-label">
             Department:
            </div>
           
            
            <div class="editor-field" style="font-weight: bold">
               <%--    <%= Html.DisplayTextFor(model=>model.Admission.Course.Faculty.Department.DepartmentName) %>
             <%= Html.DisplayTextFor(model => model.Admission.Course.Faculty.FacultyName)%> > 
                <%= Html.DisplayTextFor(model => model.Admission.Course.CourseName)%> > 
                
                <%= Html.TextBoxFor(model => model.AdmissionID) %>
                <%= Html.ValidationMessageFor(model => model.AdmissionID) %>--%>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.SupportDetails) %>
            </div>
            <div class="editor-field">
                <%= Html.TextAreaFor(model => model.SupportDetails,3) %>
                <%= Html.ValidationMessageFor(model => model.SupportDetails) %>
            </div>
              
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>
        
		<div class="cleared"></div>
    </div>
</div>
   </div>

		<div class="cleared"></div>
    </div>


